<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
       
  #box {
    width: 200px;
    height: 100px;
    -webkit-box-flex:1;
    border: 1px solid #28AE65;
    border-radius:6px;
    padding: 20px;
    position: relative;
    font-size: 12px;
    border: 1px solid;
  }
 
  #title {
    background: #FFFFFF;
    color: #28AE65;
    font-size: 15px;
    text-align: center;
    width: 70px;
    height: 20px;
    line-height: 20px;
    position: absolute;
    top: -10px;
    left: 50%;
    margin-left: -35px;
    border: 1px solid;
  }
</style>
    </style>
</head>
<body>
    <div id="box">
        <div id="title">标题</div>
        欢迎访问 hangge.com 欢迎访问 hangge.com 欢迎访问 hangge.com 欢迎访问 hangge.com
      </div>
</body>
</html>